import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/standardiztion/standard_home_scence_safe_entity.dart';

StandardHomeScenceSafeEntity $StandardHomeScenceSafeEntityFromJson(Map<String, dynamic> json) {
  final StandardHomeScenceSafeEntity standardHomeScenceSafeEntity = StandardHomeScenceSafeEntity();
  final String? lpa = jsonConvert.convert<String>(json['lpa']);
  if (lpa != null) {
    standardHomeScenceSafeEntity.lpa = lpa;
  }
  final String? mp = jsonConvert.convert<String>(json['mp']);
  if (mp != null) {
    standardHomeScenceSafeEntity.mp = mp;
  }
  final String? qrr = jsonConvert.convert<String>(json['qrr']);
  if (qrr != null) {
    standardHomeScenceSafeEntity.qrr = qrr;
  }
  final String? tssa = jsonConvert.convert<String>(json['tssa']);
  if (tssa != null) {
    standardHomeScenceSafeEntity.tssa = tssa;
  }
  final String? tssm = jsonConvert.convert<String>(json['tssm']);
  if (tssm != null) {
    standardHomeScenceSafeEntity.tssm = tssm;
  }
  return standardHomeScenceSafeEntity;
}

Map<String, dynamic> $StandardHomeScenceSafeEntityToJson(StandardHomeScenceSafeEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['lpa'] = entity.lpa;
  data['mp'] = entity.mp;
  data['qrr'] = entity.qrr;
  data['tssa'] = entity.tssa;
  data['tssm'] = entity.tssm;
  return data;
}

extension StandardHomeScenceSafeEntityExtension on StandardHomeScenceSafeEntity {
  StandardHomeScenceSafeEntity copyWith({
    String? lpa,
    String? mp,
    String? qrr,
    String? tssa,
    String? tssm,
  }) {
    return StandardHomeScenceSafeEntity()
      ..lpa = lpa ?? this.lpa
      ..mp = mp ?? this.mp
      ..qrr = qrr ?? this.qrr
      ..tssa = tssa ?? this.tssa
      ..tssm = tssm ?? this.tssm;
  }
}
